package insight.google.game.era.bo.policy.character;

import java.util.Map;

import insight.google.game.era.bo.GameUser;
import insight.google.game.era.bo.policy.AbstractPolicy;

public class CharacterPolicy extends AbstractPolicy {
	
	/**
	 * 
	 */
	public static int TYPE_BE_SELECTED = 1;
	public static int TYPE_ON_TURN = 2;
	public static int TYPE_ON_DISCARD = 3;
	public static int TYPE_WITH_DISCARD = 4;
	public static int TYPE_BE_HURTED = 5;
	
	protected int type;
	//protected boolean isFixed;
	
	public CharacterPolicy(){
		super();
	}
	
	public CharacterPolicy(String id, String name){
		this.generatedId =id;
		this.name = name;
	}

	@Override
	public boolean execute(GameUser original, GameUser[] targets, Map params) {
		// TODO Auto-generated method stub
		boolean isActive = (Boolean)params.get("isActive");
		if(this.isFixed || isActive){
			
		}
		return false;
	}
	
	public boolean beSelectedExec(GameUser original, GameUser[] targets, Map params){
		return false;
	}
	
	public boolean onTurnExec(GameUser original, GameUser[] targets, Map params){
		return false;
	}
	
	public boolean onDiscardExec(GameUser original, GameUser[] targets, Map params){
		return false;
	}
	
	public boolean withDiscardExec(GameUser original, GameUser[] targets, Map params){
		return false;
	}
	
	public boolean beHurtedExec(GameUser original, GameUser[] targets, Map params){
		return false;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
